<!--
 * @Description: 间歇调用
 * @Author: rendc
 * @Date: 2021-09-09 09:38:58
 * @LastEditors: rendc
 * @LastEditTime: 2021-09-09 09:54:00
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>间歇调用</title>
</head>

<body>

</body>
<script>
  var id = setInterval(function () {
    console.log("时间到啦，该吃💊了" + new Date());
  }, )
  console.log(id);
  clearInterval(id);
  var id = setInterval(function () {
    console.log("时间到啦，该吃💊了" + new Date());
  }, )
  console.log(id);
  clearInterval(id);
</script>

</html>